package DB.Dao.RepairDocs;

/**
 * RepairDocsId entity. @author MyEclipse Persistence Tools
 */

public class RepairDocsId implements java.io.Serializable {

	// Fields

	private Integer breakId;
	private String docLocation;

	// Constructors

	/** default constructor */
	public RepairDocsId() {
	}

	/** full constructor */
	public RepairDocsId(Integer breakId, String docLocation) {
		this.breakId = breakId;
		this.docLocation = docLocation;
	}

	// Property accessors

	public Integer getBreakId() {
		return this.breakId;
	}

	public void setBreakId(Integer breakId) {
		this.breakId = breakId;
	}

	public String getDocLocation() {
		return this.docLocation;
	}

	public void setDocLocation(String docLocation) {
		this.docLocation = docLocation;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof RepairDocsId))
			return false;
		RepairDocsId castOther = (RepairDocsId) other;

		return ((this.getBreakId() == castOther.getBreakId()) || (this
				.getBreakId() != null && castOther.getBreakId() != null && this
				.getBreakId().equals(castOther.getBreakId())))
				&& ((this.getDocLocation() == castOther.getDocLocation()) || (this
						.getDocLocation() != null
						&& castOther.getDocLocation() != null && this
						.getDocLocation().equals(castOther.getDocLocation())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getBreakId() == null ? 0 : this.getBreakId().hashCode());
		result = 37
				* result
				+ (getDocLocation() == null ? 0 : this.getDocLocation()
						.hashCode());
		return result;
	}

}